cmake_minimum_required(VERSION 2.8)

aux_source_directory(core/include CSB_SRC_LIST)
aux_source_directory(core/src CSB_SRC_LIST)
aux_source_directory(bind/cpp CSB_SRC_LIST)
aux_source_directory(plugin/SC CSB_SRC_LIST)
aux_source_directory(plugin/CP CSB_SRC_LIST)

include_directories(
  core/include
  bind/cpp
  plugin/SC
  plugin/CP
)

if (NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffast-math")
endif()

add_library(CSB STATIC ${CSB_SRC_LIST})
